/*
 * @Author: wxinlong 3075748076@qq.com
 * @Date: 2023-06-17 10:29:14
 * @LastEditors: wxinlong 3075748076@qq.com
 * @LastEditTime: 2023-06-17 10:57:46
 * @Description: 标签路由
 * Copyright (c) 2023 by wxinlong 3075748076@qq.com, All Rights Reserved.
 */
const express = require('express')
const router = express.Router()
const tagController = require('../controllers/tagController')

// 创建标签
router.post('/create', tagController.createTag)
// 查询所有标签
router.get('/query', tagController.getTags)
// 根据 id 删除标签
router.delete('/delete/:id', tagController.deleteTag)

module.exports = router
